all: discovery registry
discovery: discovery.cpp main.pb.cc
	g++ -o $@ $^ -std=c++17 -lgflags -letcd-cpp-api -lcpprest -lspdlog -lfmt -lbrpc -lssl -lcrypto -lprotobuf -lleveldb
registry: registry.cpp main.pb.cc
	g++ -o $@ $^ -std=c++17 -lgflags -letcd-cpp-api -lcpprest -lspdlog -lfmt -lbrpc -lssl -lcrypto -lprotobuf -lleveldb

.PHONY:clean
clean:
	rm -f registry discovery